cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
project(Test)
  
  
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTKMM REQUIRED gtkmm-3.0)
include_directories(${GTKMM_INCLUDE_DIRS})
link_directories(${GTKMM_LIBRARY_DIRS})
list(APPEND FC_DEP_LIBS ${GTKMM_LIBRARIES})
 
# 生成可执行程序
add_executable(Test main.cc)
 
target_link_libraries (Test ${FC_DEP_LIBS})


